<!DOCTYPE html>

<html lang="zh-CN">

<head>
  
  <meta name="baidu-site-verification" content="code-J1Qg17G6wT" />
  <title>web学记笔记5 - js循环3 - 咔斯の小窝</title>
  <meta charset="UTF-8">
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
  
  

    <!-- Site Verification -->
    <meta name="baidu-site-verification" content="code-7bF3wXCwO5" />

  <link rel="shortcut icon" href="https://s2.loli.net/2022/07/19/xKNvsPHqcyCL37d.png" type="image/png" />
  <meta name="description" content="js循环3 学习总结封面画师：唏嘘的星辰  p站ID：13312138">
<meta property="og:type" content="article">
<meta property="og:title" content="web学记笔记5 - js循环3">
<meta property="og:url" content="https://blog.kassama.top/webNotes5.html">
<meta property="og:site_name" content="咔斯の小窝">
<meta property="og:description" content="js循环3 学习总结封面画师：唏嘘的星辰  p站ID：13312138">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://tva1.sinaimg.cn/large/006RYYI7ly1h4ex44r8rlj31gq0ppe1b.jpg">
<meta property="article:published_time" content="2020-04-08T14:10:32.000Z">
<meta property="article:modified_time" content="2023-03-07T08:00:31.090Z">
<meta property="article:author" content="咔斯Sama">
<meta property="article:tag" content="HTML">
<meta property="article:tag" content="web">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://tva1.sinaimg.cn/large/006RYYI7ly1h4ex44r8rlj31gq0ppe1b.jpg">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/combine/npm/highlight.js@9.15.8/styles/atom-one-dark.css,gh/theme-nexmoe/hexo-theme-nexmoe@latest/source/lib/mdui_043tiny/css/mdui.css,gh/theme-nexmoe/hexo-theme-nexmoe@latest/source/lib/iconfont/iconfont.css,gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css?v=233" crossorigin>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/justifiedGallery@3.8.1/dist/css/justifiedGallery.min.css">
  
    <link rel="stylesheet" href="//at.alicdn.com/t/font_2421060_cksn56jaae6.css">
  
  <link rel="stylesheet" href="/css/style.css?v=1695462045744">
<meta name="generator" content="Hexo 6.1.0"></head>

<body class="mdui-drawer-body-left">
  
  <div id="nexmoe-background">
    <div class="nexmoe-bg" style="background-image: url(https://cdn.jsdelivr.net/gh/kasisama/Blog_images/background/bk1.webp)"></div>
    <div class="nexmoe-small" style="background-image: url(https://s2.loli.net/2022/07/19/QDhWb3BqyXLcdF8.png)"></div>
    <div class="mdui-appbar mdui-shadow-0">
      <div class="mdui-toolbar">
        <a mdui-drawer="{target: '#drawer', swipe: true}" title="menu" class="mdui-btn mdui-btn-icon mdui-ripple"><i class="mdui-icon nexmoefont icon-menu"></i></a>
        <div class="mdui-toolbar-spacer"></div>
        <!--<a href="javascript:;" class="mdui-btn mdui-btn-icon"><i class="mdui-icon material-icons">search</i></a>-->
        <a href="/" title="咔斯Sama" class="mdui-btn mdui-btn-icon"><img src="https://cdn.jsdelivr.net/gh/kasisama/Blog_images/background/kasi.webp" alt="咔斯Sama"></a>
       </div>
    </div>
  </div>
  <div id="nexmoe-header">
      <div class="nexmoe-drawer mdui-drawer" id="drawer">
    <div class="nexmoe-avatar mdui-ripple">
        <a href="/" title="咔斯Sama">
            <img src="https://cdn.jsdelivr.net/gh/kasisama/Blog_images/background/kasi.webp" alt="咔斯Sama" alt="咔斯Sama">
        </a>
    </div>
    <div class="nexmoe-count">
        <div id="ks-articlesBtn" class="nexmoe-count-item"><span>文章</span>32 <div class="item-radius"></div><div class="item-radius item-right"></div> </div>
        <div id="ks-tagsBtn" class="nexmoe-count-item"><span>标签</span>14<div class="item-radius"></div><div class="item-radius item-right"></div></div>
        <div id="ks-categoriesBtn" class="nexmoe-count-item"><span>分类</span>6<div class="item-radius"></div><div class="item-radius item-right"></div></div>
    </div>
    <div class="nexmoe-list mdui-list" mdui-collapse="{accordion: true}">
        
        <a class="nexmoe-list-item mdui-list-item mdui-ripple" href="/" title="回到首页">
            <i class="mdui-list-item-icon nexmoefont icon-meishi"></i>
            <div class="mdui-list-item-content">
                回到首页
            </div>
        </a>
        
        <a class="nexmoe-list-item mdui-list-item mdui-ripple" href="/archives.html" title="文章归档">
            <i class="mdui-list-item-icon nexmoefont icon-hanbao1"></i>
            <div class="mdui-list-item-content">
                文章归档
            </div>
        </a>
        
        <a class="nexmoe-list-item mdui-list-item mdui-ripple" href="/friend.html" title="我的朋友">
            <i class="mdui-list-item-icon nexmoefont icon-cola"></i>
            <div class="mdui-list-item-content">
                我的朋友
            </div>
        </a>
        
        <a class="nexmoe-list-item mdui-list-item mdui-ripple" href="/photos.html" title="咔斯相册">
            <i class="mdui-list-item-icon nexmoefont icon-tuchong"></i>
            <div class="mdui-list-item-content">
                咔斯相册
            </div>
        </a>
        
        <a class="nexmoe-list-item mdui-list-item mdui-ripple" href="/about.html" title="关于咔斯">
            <i class="mdui-list-item-icon nexmoefont icon-jiubei1"></i>
            <div class="mdui-list-item-content">
                关于咔斯
            </div>
        </a>
        
    </div>
    <aside id="nexmoe-sidebar">
  
  
<!-- 站内搜索 -->

<div class="nexmoe-widget-wrap">
    <div class="nexmoe-widget nexmoe-search" >
        <form id="search-form">
            <label><input type="text" id="local-search-input" name="q" results="0" placeholder="站内搜索" class="input form-control" autocomplete="off" autocorrect="off"/></label>
            <!-- 清空/重置搜索框 -->
            <i class="fa fa-times" onclick="resetSearch()"></i>
        </form>
    </div>
    <div id="local-search-result"></div> <!-- 搜索结果区 -->
    <!-- <p class='no-result'></p> 无匹配时显示，注意在 CSS 中设置默认隐藏 -->
</div>


  
  <div class="nexmoe-widget-wrap">
    <div class="nexmoe-widget nexmoe-social">
        <a class="mdui-ripple" href="http://wpa.qq.com/msgrd?v=3&uin=1347993953&site=qq&menu=yes" target="_blank" mdui-tooltip="{content: 'QQ'}" style="color: rgb(64, 196, 255);background-color: rgba(64, 196, 255, .1);">
            <i class="nexmoefont icon-QQ"></i>
        </a><a class="mdui-ripple" href="https://steamcommunity.com/id/kasiwuhui/" target="_blank" mdui-tooltip="{content: 'steam'}" style="color: rgb(14, 71, 161);background-color: rgba(14, 71, 161, .15);">
            <i class="nexmoefont icon-steam"></i>
        </a><a class="mdui-ripple" href="mailto:kasiwuhui@vip.qq.com" target="_blank" mdui-tooltip="{content: 'mail'}" style="color: rgb(249,8,8);background-color: rgba(249,8,8,.1);">
            <i class="nexmoefont icon-mail-fill"></i>
        </a><a class="mdui-ripple" href="https://space.bilibili.com/93548600" target="_blank" mdui-tooltip="{content: '哔哩哔哩'}" style="color: rgb(231, 106, 141);background-color: rgba(231, 106, 141, .15);">
            <i class="nexmoefont icon-bilibili"></i>
        </a><a class="mdui-ripple" href="https://github.com/kasisama/" target="_blank" mdui-tooltip="{content: 'GitHub'}" style="color: rgb(25, 23, 23);background-color: rgba(25, 23, 23, .15);">
            <i class="nexmoefont icon-github"></i>
        </a><a class="mdui-ripple" href="https://gitee.com/kassama" target="_blank" mdui-tooltip="{content: 'gitee'}" style="color: rgb(199, 29, 35);background-color: rgba(199, 29, 35, .15);">
            <i class="nexmoefont icon-mayun"></i>
        </a>
    </div>
</div>
  
  
  <div class="nexmoe-widget-wrap">
    <div id="randomtagcloud" class="nexmoe-widget tagcloud nexmoe-rainbow">
      <a href="/tags/CDN/" style="font-size: 10px;">CDN</a> <a href="/tags/HTML/" style="font-size: 20px;">HTML</a> <a href="/tags/Linux/" style="font-size: 12.5px;">Linux</a> <a href="/tags/NodeJs/" style="font-size: 12.5px;">NodeJs</a> <a href="/tags/QWQ/" style="font-size: 10px;">QWQ</a> <a href="/tags/Ubuntu/" style="font-size: 12.5px;">Ubuntu</a> <a href="/tags/Vue/" style="font-size: 15px;">Vue</a> <a href="/tags/web/" style="font-size: 17.5px;">web</a> <a href="/tags/wiki/" style="font-size: 12.5px;">wiki</a> <a href="/tags/%E5%8D%9A%E5%AE%A2/" style="font-size: 10px;">博客</a> <a href="/tags/%E5%92%94%E6%96%AF/" style="font-size: 10px;">咔斯</a> <a href="/tags/%E5%92%94%E6%96%AF%E5%A8%B1%E4%B9%90/" style="font-size: 10px;">咔斯娱乐</a> <a href="/tags/%E5%AE%A0%E7%89%A9%E5%85%BB%E6%88%90/" style="font-size: 12.5px;">宠物养成</a> <a href="/tags/%E6%9C%8D%E5%8A%A1%E6%9D%A1%E6%AC%BE/" style="font-size: 10px;">服务条款</a>
    </div>
    
  </div>

  
  
  <div class="nexmoe-widget-wrap">
    <h3 class="nexmoe-widget-title">文章分类</h3>
    <div class="nexmoe-widget">

      <ul class="category-list">

        


        

        

        <li class="category-list-item">
          <a class="category-list-link" href="/categories/web笔记/">web笔记</a>
          <span class="category-list-count">23</span>
        </li>

        

        <li class="category-list-item">
          <a class="category-list-link" href="/categories/wiki/">wiki</a>
          <span class="category-list-count">2</span>
        </li>

        

        <li class="category-list-item">
          <a class="category-list-link" href="/categories/公告/">公告</a>
          <span class="category-list-count">1</span>
        </li>

        

        <li class="category-list-item">
          <a class="category-list-link" href="/categories/备忘/">备忘</a>
          <span class="category-list-count">1</span>
        </li>

        

        <li class="category-list-item">
          <a class="category-list-link" href="/categories/日志/">日志</a>
          <span class="category-list-count">4</span>
        </li>

        

        <li class="category-list-item">
          <a class="category-list-link" href="/categories/遇坑记录/">遇坑记录</a>
          <span class="category-list-count">1</span>
        </li>

        
      </ul>

    </div>
  </div>


  
  
  <div class="nexmoe-widget-wrap">
    <h3 class="nexmoe-widget-title">文章归档</h3>
    <div class="nexmoe-widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/">2022</a><span class="archive-list-count">6</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/">2021</a><span class="archive-list-count">6</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/">2020</a><span class="archive-list-count">20</span></li></ul>
    </div>
  </div>


<style>
.nexmoe-widget .archive-list-count{
	position : absolute;
	right: 15px;
	top:9px;
	color: #DDD;
}
</style>

  
</aside>
    <div class="nexmoe-copyright">
        &copy; 2023 咔斯Sama
        Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
        & <a href="https://github.com/theme-nexmoe/hexo-theme-nexmoe" target="_blank">Nexmoe</a><br/>
        <a href="http://beian.miit.gov.cn" target="_blank"></a><br/>
        
        <div style="font-size: 12px">
            <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
            本站总访问量  <a id="busuanzi_value_site_pv"></a> 次<br />
            本站访客数<a id="busuanzi_value_site_uv"></a>人次
        </div>
        
        
    </div>

</div><!-- .nexmoe-drawer -->

  </div>
  <div id="nexmoe-content">
    <div class="nexmoe-primary">
        <div class="nexmoe-post">
    
        <div class="nexmoe-post-cover" style="padding-bottom: 47.41666666666667%;">
            <img data-src="https://cdn.jsdelivr.net/gh/kasisama/Blog_images/Otherimgage/webLearn.webp" data-sizes="auto" alt="web学记笔记5 - js循环3" class="lazyload">
            <h1>web学记笔记5 - js循环3</h1>
        </div>
    

        <div class="nexmoe-post-meta nexmoe-rainbow" style="margin:10px 0!important;">
    <a><i class="nexmoefont icon-calendar-fill"></i>2020年04月08日</a>
    <a><i class="nexmoefont icon-areachart"></i>1.5k 字</a>
    <a><i class="nexmoefont icon-time-circle-fill"></i>大概 8 分钟</a>
</div>


        <article>
            <p>js循环3 学习总结<br>封面画师：唏嘘的星辰  p站ID：13312138</p>
<span id="more"></span>
<h2 id="for循环嵌套"><a href="#for循环嵌套" class="headerlink" title="for循环嵌套"></a>for循环嵌套</h2><h3 id="案例1"><a href="#案例1" class="headerlink" title="案例1"></a>案例1</h3><p>先执行 <code>var i = 0;</code> 判断 <code>i &lt; 10</code>,<br>成立再去执行内部的循环，先去执行 <code>var j = 0</code> ，<br>再去判断 <code>j &lt; 10</code> ,如果成立，去执行内部循环体，再去执行<code>j++</code> ，<br>再去判断是否小于10，如果小于10，在执行内部循环，直到<code>j</code>不小于10，最后执行<code>i++</code></p>
<blockquote>
<p>i 和 j 值的变化<br>    <code>i</code>    <code>j</code><br>    <code>0</code>    <code>0 1 2 3 4 5 6 7 8 9</code><br>    <code>1</code>    <code>0 1 2 3 4 5 6 7 8 9</code><br>    <code>2</code>    <code>0 1 2 3 4 5 6 7 8 9</code><br>    …<br>    <code>9</code>    <code>0 1 2 3 4 5 6 7 8 9</code></p>
</blockquote>
<pre><code class="highlight js"><span class="comment">// 外循环</span>
<span class="keyword">for</span>(<span class="keyword">var</span> i = <span class="number">0</span>;i&lt;<span class="number">10</span>;i++)&#123;
    <span class="comment">// console.log(i) //0-9</span>
    <span class="comment">// 内循环</span>
    <span class="keyword">for</span>(<span class="keyword">var</span> j=<span class="number">0</span>;j&lt;<span class="number">10</span>;j++)&#123;
        <span class="comment">// i=0;j=0</span>
        <span class="comment">// console.log(&quot;i=&quot; + i + &quot;;j=&quot; + j)</span>
        <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">`i=<span class="subst">$&#123;i&#125;</span>;j=<span class="subst">$&#123;j&#125;</span>`</span>)
    &#125;
&#125;</code></pre>

<h3 id="案例2"><a href="#案例2" class="headerlink" title="案例2"></a>案例2</h3><pre><code class="highlight js"><span class="keyword">for</span>(<span class="keyword">var</span> i= <span class="number">0</span>;i&lt;<span class="number">5</span>;i++)&#123;
    <span class="comment">// break 跳出离他最近的循环嵌套</span>
    <span class="keyword">for</span>(<span class="keyword">var</span> j = <span class="number">0</span>;j&lt;<span class="number">5</span>;j++)&#123;
        <span class="variable language_">console</span>.<span class="title function_">log</span>(i,j)
        <span class="keyword">break</span>
    &#125;
&#125;

<span class="comment">//    i = 0  j = 0   </span>
<span class="comment">//    i = 1  j = 0 </span>
<span class="comment">//    i = 2  j = 0</span>
<span class="comment">//    i = 3  j = 0</span>
<span class="comment">//    i = 4  j = 0</span></code></pre>

<h3 id="案例3"><a href="#案例3" class="headerlink" title="案例3"></a>案例3</h3><pre><code class="highlight js"><span class="keyword">for</span> (<span class="keyword">var</span> i = <span class="number">0</span>; i &lt; <span class="number">3</span>; i++) &#123;
    <span class="comment">// break 跳出离他最近的循环嵌套</span>
    <span class="keyword">for</span> (<span class="keyword">var</span> j = <span class="number">0</span>; j &lt; <span class="number">3</span>; j++) &#123;
        <span class="variable language_">console</span>.<span class="title function_">log</span>(i, j)
        <span class="keyword">if</span>(j&lt;<span class="number">2</span>)&#123;
            <span class="keyword">break</span>
        &#125;
    &#125;
&#125;

<span class="comment">/*</span>
<span class="comment">    i = 0   j=0 </span>
<span class="comment">    i = 1   j= 0 </span>
<span class="comment">    i = 2   j = 0 </span>
<span class="comment">*/</span>
</code></pre>

<h3 id="案例4"><a href="#案例4" class="headerlink" title="案例4"></a>案例4</h3><pre><code class="highlight js"><span class="keyword">for</span>(<span class="keyword">var</span> i = <span class="number">0</span>;i&lt;<span class="number">3</span>;i++)&#123;
    <span class="keyword">for</span>(<span class="keyword">var</span> j = <span class="number">0</span>;j&lt;<span class="number">3</span>;j++)&#123;
        <span class="keyword">if</span>(j==<span class="number">2</span>)&#123;
            <span class="keyword">break</span>
        &#125;
        <span class="variable language_">console</span>.<span class="title function_">log</span>(j,<span class="string">&quot;--------------------&quot;</span>) <span class="comment">//打印几次 分别多少</span>
        <span class="comment">//  0 1 </span>
    &#125;
    <span class="variable language_">console</span>.<span class="title function_">log</span>(i,<span class="string">&quot;+++++++++++++++++++++++++&quot;</span>)<span class="comment">//打印几次 分别多少 0 1 2 </span>
&#125;

<span class="comment">/*</span>
<span class="comment">    i = 0       j = 0  1    i = 0</span>
<span class="comment"></span>
<span class="comment">    i = 1        j=0 1       i = 1</span>
<span class="comment"></span>
<span class="comment">    i=2         j=0 1       i = 2</span>
<span class="comment">*/</span></code></pre>

<h2 id="数据分析"><a href="#数据分析" class="headerlink" title="数据分析"></a>数据分析</h2><h3 id="案例1-（弹性布局）"><a href="#案例1-（弹性布局）" class="headerlink" title="案例1 （弹性布局）"></a>案例1 （弹性布局）</h3><pre><code class="highlight js">    &lt;style&gt;
        #main&#123;
           
            <span class="attr">width</span>: 1200px;
            <span class="attr">margin</span>: <span class="number">0</span> auto;
            <span class="comment">/* 弹性布局 */</span>
            <span class="attr">display</span>: flex;
            <span class="comment">/* 水平的排版方式  space-around：周围有空间*/</span>
            <span class="comment">/* space-between 俩者之间有间距 */</span>
            justify-<span class="attr">content</span>:space-between;
            <span class="comment">/* 换行 */</span>
            flex-<span class="attr">wrap</span>: wrap;
            <span class="attr">border</span>: 1px solid red;
        &#125;
        #main .<span class="property">item</span>&#123;
            <span class="attr">width</span>: 250px;
            <span class="attr">padding</span>: 10px;
          
        &#125;
        #main img&#123;
            <span class="attr">width</span>: <span class="number">100</span>%;
            <span class="attr">height</span>: 200px;
        &#125;
    &lt;/style&gt;
&lt;/head&gt;
<span class="language-xml"><span class="tag">&lt;<span class="name">body</span>&gt;</span></span>
<span class="language-xml">    <span class="tag">&lt;<span class="name">div</span> <span class="attr">id</span>=<span class="string">&quot;main&quot;</span>&gt;</span></span>
<span class="language-xml">        </span>
<span class="language-xml">    <span class="tag">&lt;/<span class="name">div</span>&gt;</span></span>
<span class="language-xml">    <span class="tag">&lt;<span class="name">script</span> <span class="attr">src</span>=<span class="string">&quot;腾发.js&quot;</span>&gt;</span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span>
<span class="language-xml">    <span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="language-handlebars"><span class="language-xml"></span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">       </span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">        var 车数组 = data.data.content</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">        console.log(车数组)</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">        var s1 = &quot;&quot;</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">        for(var i = 0;i&lt;车数组.length;i++)&#123;</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">            var 车 = 车数组[i]</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">             var p = &quot;&quot;</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">            if(车.saleType==2)&#123;</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">                p = `<span class="tag">&lt;<span class="name">p</span> <span class="attr">class</span>=<span class="string">&#x27;c1&#x27;</span>&gt;</span>限时特惠<span class="tag">&lt;/<span class="name">p</span>&gt;</span>`</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">            &#125;else&#123;</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">                 p = `<span class="tag">&lt;<span class="name">p</span> <span class="attr">class</span>=<span class="string">&#x27;c2&#x27;</span>&gt;</span>腾发自营<span class="tag">&lt;/<span class="name">p</span>&gt;</span>`</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">            &#125;</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">            </span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">            s1 = s1 +  `</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">            <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">&quot;item&quot;</span>&gt;</span></span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">            <span class="tag">&lt;<span class="name">img</span> <span class="attr">src</span>=<span class="string">$&#123;车.cover&#125;</span>  <span class="attr">alt</span>=<span class="string">&quot;&quot;</span>&gt;</span></span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">             $&#123;p&#125;</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">            <span class="tag">&lt;<span class="name">p</span> <span class="attr">class</span>=<span class="string">&quot;title&quot;</span>&gt;</span>$&#123;车.carName&#125;<span class="tag">&lt;/<span class="name">p</span>&gt;</span></span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">            <span class="tag">&lt;<span class="name">p</span> <span class="attr">class</span>=<span class="string">&quot;time&quot;</span>&gt;</span>$&#123;车.dateOfRegistration&#125; $&#123;车.mileage&#125;<span class="tag">&lt;/<span class="name">p</span>&gt;</span></span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">            <span class="tag">&lt;<span class="name">p</span> <span class="attr">class</span>=<span class="string">&quot;price&quot;</span>&gt;</span>$&#123;车.currentPrice&#125;<span class="tag">&lt;/<span class="name">p</span>&gt;</span></span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">           <span class="tag">&lt;/<span class="name">div</span>&gt;</span></span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">           `</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">        &#125;</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">        main.innerHTML = s1</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">        console.log(s1)</span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml"></span></span></span>
<span class="language-xml"><span class="language-handlebars"><span class="language-xml">    </span></span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span>
<span class="language-xml"><span class="tag">&lt;/<span class="name">body</span>&gt;</span></span></code></pre>

<p>JS文件（因篇幅问题，部分数据已被删减）：</p>
<pre><code class="highlight js"><span class="keyword">var</span> data = &#123;
    <span class="string">&quot;status&quot;</span>: <span class="number">200</span>,
    <span class="string">&quot;success&quot;</span>: <span class="literal">true</span>,
    <span class="string">&quot;msg&quot;</span>: <span class="string">&quot;操作成功&quot;</span>,
    <span class="string">&quot;data&quot;</span>: &#123;
        <span class="string">&quot;totalElements&quot;</span>: <span class="number">3754</span>,
        <span class="string">&quot;pages&quot;</span>: <span class="number">188</span>,
        <span class="string">&quot;content&quot;</span>: [
            &#123;
                <span class="string">&quot;ind&quot;</span>: <span class="string">&quot;202107151725080963&quot;</span>,
                <span class="string">&quot;carName&quot;</span>: <span class="string">&quot;2019款 揽胜星脉(进口) 250PS&quot;</span>,
                <span class="string">&quot;dateOfRegistration&quot;</span>: <span class="number">1546272000000</span>,
                <span class="string">&quot;currentPrice&quot;</span>: <span class="number">40.9</span>,
                <span class="string">&quot;mileage&quot;</span>: <span class="number">3.16</span>,
                <span class="string">&quot;saleType&quot;</span>: <span class="number">2</span>,
                <span class="string">&quot;cover&quot;</span>: <span class="string">&quot;https://tfcar.oss-cn-hangzhou.aliyuncs.com/257819713441103872.jpg?x-oss-process=style/watermark&quot;</span>,
                <span class="string">&quot;reportAssess&quot;</span>: <span class="literal">true</span>
            &#125;,
            &#123;
                <span class="string">&quot;ind&quot;</span>: <span class="string">&quot;202105231822590022&quot;</span>,
                <span class="string">&quot;carName&quot;</span>: <span class="string">&quot;2003款 陆地巡洋舰 4.5L 手动 GX&quot;</span>,
                <span class="string">&quot;dateOfRegistration&quot;</span>: <span class="number">1075564800000</span>,
                <span class="string">&quot;currentPrice&quot;</span>: <span class="number">9.9</span>,
                <span class="string">&quot;mileage&quot;</span>: <span class="number">30.16</span>,
                <span class="string">&quot;saleType&quot;</span>: <span class="number">2</span>,
                <span class="string">&quot;cover&quot;</span>: <span class="string">&quot;https://tfcar.oss-cn-hangzhou.aliyuncs.com/227801833416949760.jpg?x-oss-process=style/watermark&quot;</span>,
                <span class="string">&quot;reportAssess&quot;</span>: <span class="literal">true</span>
            &#125;,
            &#123;
                <span class="string">&quot;ind&quot;</span>: <span class="string">&quot;202106211755020723&quot;</span>,
                <span class="string">&quot;carName&quot;</span>: <span class="string">&quot;2014款 起亚K5 2.0L 手动 GL&quot;</span>,
                <span class="string">&quot;dateOfRegistration&quot;</span>: <span class="number">1404144000000</span>,
                <span class="string">&quot;currentPrice&quot;</span>: <span class="number">4.9</span>,
                <span class="string">&quot;mileage&quot;</span>: <span class="number">10.31</span>,
                <span class="string">&quot;saleType&quot;</span>: <span class="number">2</span>,
                <span class="string">&quot;cover&quot;</span>: <span class="string">&quot;https://tfcar.oss-cn-hangzhou.aliyuncs.com/270495116668436480.jpg?x-oss-process=style/watermark&quot;</span>,
                <span class="string">&quot;reportAssess&quot;</span>: <span class="literal">true</span>
            &#125;,
            &#123;
                <span class="string">&quot;ind&quot;</span>: <span class="string">&quot;202107201459061126&quot;</span>,
                <span class="string">&quot;carName&quot;</span>: <span class="string">&quot;2011款 汉兰达 2.7L 自动 两驱豪华版 7座&quot;</span>,
                <span class="string">&quot;dateOfRegistration&quot;</span>: <span class="number">1359648000000</span>,
                <span class="string">&quot;currentPrice&quot;</span>: <span class="number">8.9</span>,
                <span class="string">&quot;mileage&quot;</span>: <span class="number">13.52</span>,
                <span class="string">&quot;saleType&quot;</span>: <span class="number">2</span>,
                <span class="string">&quot;cover&quot;</span>: <span class="string">&quot;https://tfcar.oss-cn-hangzhou.aliyuncs.com/275572024418500608.jpg?x-oss-process=style/watermark&quot;</span>,
                <span class="string">&quot;reportAssess&quot;</span>: <span class="literal">true</span>
            &#125;,
            &#123;
                <span class="string">&quot;ind&quot;</span>: <span class="string">&quot;202106161151190127&quot;</span>,
                <span class="string">&quot;carName&quot;</span>: <span class="string">&quot;2007款 捷豹XJ(进口) XJ6L 新一代皇家加长版&quot;</span>,
                <span class="string">&quot;dateOfRegistration&quot;</span>: <span class="number">1196438400000</span>,
                <span class="string">&quot;currentPrice&quot;</span>: <span class="number">19.9</span>,
                <span class="string">&quot;mileage&quot;</span>: <span class="number">16.68</span>,
                <span class="string">&quot;saleType&quot;</span>: <span class="number">0</span>,
                <span class="string">&quot;cover&quot;</span>: <span class="string">&quot;https://tfcar.oss-cn-hangzhou.aliyuncs.com/278907000484528128.jpg?x-oss-process=style/watermark&quot;</span>,
                <span class="string">&quot;reportAssess&quot;</span>: <span class="literal">true</span>
            &#125;,
            &#123;
                <span class="string">&quot;ind&quot;</span>: <span class="string">&quot;202107191448321079&quot;</span>,
                <span class="string">&quot;carName&quot;</span>: <span class="string">&quot;2015款 奔驰E级 改款 E180L 运动型&quot;</span>,
                <span class="string">&quot;dateOfRegistration&quot;</span>: <span class="number">1451577600000</span>,
                <span class="string">&quot;currentPrice&quot;</span>: <span class="number">19.9</span>,
                <span class="string">&quot;mileage&quot;</span>: <span class="number">10.8</span>,
                <span class="string">&quot;saleType&quot;</span>: <span class="number">0</span>,
                <span class="string">&quot;cover&quot;</span>: <span class="string">&quot;https://tfcar.oss-cn-hangzhou.aliyuncs.com/257802955825086464.jpg?x-oss-process=style/watermark&quot;</span>,
                <span class="string">&quot;reportAssess&quot;</span>: <span class="literal">true</span>
            &#125;,
            &#123;
                <span class="string">&quot;ind&quot;</span>: <span class="string">&quot;202109231134445865&quot;</span>,
                <span class="string">&quot;carName&quot;</span>: <span class="string">&quot;2017款 别克GL8 25S 舒适型 国V&quot;</span>,
                <span class="string">&quot;dateOfRegistration&quot;</span>: <span class="number">1509465600000</span>,
                <span class="string">&quot;currentPrice&quot;</span>: <span class="number">16.59</span>,
                <span class="string">&quot;mileage&quot;</span>: <span class="number">9.0</span>,
                <span class="string">&quot;saleType&quot;</span>: <span class="number">0</span>,
                <span class="string">&quot;cover&quot;</span>: <span class="string">&quot;https://tfcar.oss-cn-hangzhou.aliyuncs.com/178107228115435520.jpeg?x-oss-process=style/watermark&quot;</span>,
                <span class="string">&quot;reportAssess&quot;</span>: <span class="literal">false</span>
            &#125;,
            &#123;
                <span class="string">&quot;ind&quot;</span>: <span class="string">&quot;202106171618320442&quot;</span>,
                <span class="string">&quot;carName&quot;</span>: <span class="string">&quot;2017款 自由侠 180T 自动动能版+&quot;</span>,
                <span class="string">&quot;dateOfRegistration&quot;</span>: <span class="number">1506787200000</span>,
                <span class="string">&quot;currentPrice&quot;</span>: <span class="number">6.99</span>,
                <span class="string">&quot;mileage&quot;</span>: <span class="number">8.0</span>,
                <span class="string">&quot;saleType&quot;</span>: <span class="number">0</span>,
                <span class="string">&quot;cover&quot;</span>: <span class="string">&quot;https://tfcar.oss-cn-hangzhou.aliyuncs.com/275287714641739776.jpg?x-oss-process=style/watermark&quot;</span>,
                <span class="string">&quot;reportAssess&quot;</span>: <span class="literal">true</span>
            &#125;,
            &#123;
                <span class="string">&quot;ind&quot;</span>: <span class="string">&quot;202108061724331343&quot;</span>,
                <span class="string">&quot;carName&quot;</span>: <span class="string">&quot;2014款 宝马5系 525Li 领先型&quot;</span>,
                <span class="string">&quot;dateOfRegistration&quot;</span>: <span class="number">1427817600000</span>,
                <span class="string">&quot;currentPrice&quot;</span>: <span class="number">20.9</span>,
                <span class="string">&quot;mileage&quot;</span>: <span class="number">15.42</span>,
                <span class="string">&quot;saleType&quot;</span>: <span class="number">2</span>,
                <span class="string">&quot;cover&quot;</span>: <span class="string">&quot;https://tfcar.oss-cn-hangzhou.aliyuncs.com/275570205638262784.jpg?x-oss-process=style/watermark&quot;</span>,
                <span class="string">&quot;reportAssess&quot;</span>: <span class="literal">true</span>
            &#125;,
            &#123;
                <span class="string">&quot;ind&quot;</span>: <span class="string">&quot;202106161645460187&quot;</span>,
                <span class="string">&quot;carName&quot;</span>: <span class="string">&quot;2020款 威霆 2.0T 精英版 7座&quot;</span>,
                <span class="string">&quot;dateOfRegistration&quot;</span>: <span class="number">1612108800000</span>,
                <span class="string">&quot;currentPrice&quot;</span>: <span class="number">46.9</span>,
                <span class="string">&quot;mileage&quot;</span>: <span class="number">0.08</span>,
                <span class="string">&quot;saleType&quot;</span>: <span class="number">2</span>,
                <span class="string">&quot;cover&quot;</span>: <span class="string">&quot;https://tfcar.oss-cn-hangzhou.aliyuncs.com/275286122685267968.jpg?x-oss-process=style/watermark&quot;</span>,
                <span class="string">&quot;reportAssess&quot;</span>: <span class="literal">true</span>
            &#125;,
            &#123;
                <span class="string">&quot;ind&quot;</span>: <span class="string">&quot;202106160917050115&quot;</span>,
                <span class="string">&quot;carName&quot;</span>: <span class="string">&quot;2013款 兰德酷路泽(进口) 4000 中东版&quot;</span>,
                <span class="string">&quot;dateOfRegistration&quot;</span>: <span class="number">1420041600000</span>,
                <span class="string">&quot;currentPrice&quot;</span>: <span class="number">43.9</span>,
                <span class="string">&quot;mileage&quot;</span>: <span class="number">11.87</span>,
                <span class="string">&quot;saleType&quot;</span>: <span class="number">2</span>,
                <span class="string">&quot;cover&quot;</span>: <span class="string">&quot;https://tfcar.oss-cn-hangzhou.aliyuncs.com/265569758785568768.jpg?x-oss-process=style/watermark&quot;</span>,
                <span class="string">&quot;reportAssess&quot;</span>: <span class="literal">true</span>
            &#125;
        ]
    &#125;,
    <span class="string">&quot;time&quot;</span>: <span class="string">&quot;2022-07-08 15:03:25&quot;</span>
&#125;</code></pre>
<p><img data-fancybox="gallery" data-sizes="auto" data-src="https://tva1.sinaimg.cn/large/006RYYI7ly1h4ex44r8rlj31gq0ppe1b.jpg" alt="案例1.png" class="lazyload"></p>

        </article>

        
            
  <div class="nexmoe-post-copyright">
    <strong>本文作者：</strong>咔斯Sama<br>
    
    <strong>本文链接：</strong><a href="https://blog.kassama.top/webNotes5.html" title="https:&#x2F;&#x2F;blog.kassama.top&#x2F;webNotes5.html" target="_blank" rel="noopener">https:&#x2F;&#x2F;blog.kassama.top&#x2F;webNotes5.html</a><br>

    
      <strong>版权声明：</strong>本文采用 <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/cn/deed.zh" target="_blank">CC BY-NC-SA 3.0 CN</a> 协议进行许可
    
  </div>


        

        <div class="nexmoe-post-meta nexmoe-rainbow">
    
        <a class="nexmoefont icon-appstore-fill -link" href="/categories/web%E7%AC%94%E8%AE%B0/">web笔记</a>
    
    
        <a class="nexmoefont icon-tag-fill -none-link" href="/tags/HTML/" rel="tag">HTML</a> <a class="nexmoefont icon-tag-fill -none-link" href="/tags/web/" rel="tag">web</a>
    
</div>

    <div class="nexmoe-post-footer">
        <section class="nexmoe-comment">
    <!-- <div class="valine ks-valine-box"></div> -->
<script src='https://lib.baomitu.com/valine/1.5.1/Valine.min.js'></script>
<script>
    // 使用方法 https://valine.js.org/quickstart.html
    new Valine({
        el: '.valine',
        appId: '6Om9oV6sycmCPkRcrF9VR7Vd-gzGzoHsz',
        appKey: 'cas3l5T4L8EkjrOFGsfzD8vM',
        enableQQ: true,
        placeholder: '阁下要说点什么嘛！',
        requiredFields:['nick','mail'],

        emojiCDN: '//cdn.bilicdn.tk/gh/kasisama/ValineCDN@master/',
        // 表情title和图片映射
        emojiMaps: {
            "bilibilitv2": "bilibilitv/[tv_doge].png",
            "bilibilitv3": "bilibilitv/[tv_亲亲].png",
            "bilibilitv4": "bilibilitv/[tv_偷笑].png",
            "bilibilitv5": "bilibilitv/[tv_再见].png",
            "bilibilitv6": "bilibilitv/[tv_冷漠].png",
            "bilibilitv7": "bilibilitv/[tv_发怒].png",
            "bilibilitv8": "bilibilitv/[tv_发财].png",
            "bilibilitv9": "bilibilitv/[tv_可爱].png",
            "bilibilitv10": "bilibilitv/[tv_吐血].png",
            "bilibilitv11": "bilibilitv/[tv_呆].png",
            "bilibilitv12": "bilibilitv/[tv_呕吐].png",
            "bilibilitv13": "bilibilitv/[tv_困].png",
            "bilibilitv14": "bilibilitv/[tv_坏笑].png",
            "bilibilitv15": "bilibilitv/[tv_大佬].png",
            "bilibilitv16": "bilibilitv/[tv_大哭].png",
            "bilibilitv17": "bilibilitv/[tv_委屈].png",
            "bilibilitv18": "bilibilitv/[tv_害羞].png",
            "bilibilitv19": "bilibilitv/[tv_尴尬].png",
            "bilibilitv20": "bilibilitv/[tv_微笑].png",
            "bilibilitv21": "bilibilitv/[tv_思考].png",
            "bilibilitv22": "bilibilitv/[tv_惊吓].png",
            "bilibilitv23": "bilibilitv/[tv_打脸].png",
            "bilibilitv24": "bilibilitv/[tv_抓狂].png",
            "bilibilitv25": "bilibilitv/[tv_抠鼻].png",
            "bilibilitv26": "bilibilitv/[tv_斜眼笑].png",
            "bilibilitv27": "bilibilitv/[tv_无奈].png",
            "bilibilitv28": "bilibilitv/[tv_晕].png",
            "bilibilitv29": "bilibilitv/[tv_流汗].png",
            "bilibilitv30": "bilibilitv/[tv_流泪].png",
            "bilibilitv31": "bilibilitv/[tv_流鼻血].png",
            "bilibilitv32": "bilibilitv/[tv_点赞].png",
            "bilibilitv33": "bilibilitv/[tv_生气].png",
            "bilibilitv34": "bilibilitv/[tv_生病].png",
            "bilibilitv35": "bilibilitv/[tv_疑问].png",
            "bilibilitv36": "bilibilitv/[tv_白眼].png",
            "bilibilitv37": "bilibilitv/[tv_皱眉].png",
            "bilibilitv38": "bilibilitv/[tv_目瞪口呆].png",
            "bilibilitv39": "bilibilitv/[tv_睡着].png",
            "bilibilitv40": "bilibilitv/[tv_笑哭].png",
            "bilibilitv41": "bilibilitv/[tv_腼腆].png",
            "bilibilitv42": "bilibilitv/[tv_色].png",
            "bilibilitv43": "bilibilitv/[tv_调侃].png",
            "bilibilitv44": "bilibilitv/[tv_调皮].png",
            "bilibilitv45": "bilibilitv/[tv_鄙视].png",
            "bilibilitv46": "bilibilitv/[tv_闭嘴].png",
            "bilibilitv47": "bilibilitv/[tv_难过].png",
            "bilibilitv48": "bilibilitv/[tv_馋].png",
            "bilibilitv49": "bilibilitv/[tv_鬼脸].png",
            "bilibilitv50": "bilibilitv/[tv_黑人问号].png",
            "bilibilitv51": "bilibilitv/[tv_鼓掌].png",
            "Heybox1": "Heybox/expression_cube.png",
            "Heybox2": "Heybox/expression_cube_bingbujiandan.png",
            "Heybox3": "Heybox/expression_cube_bizui.png",
            "Heybox4": "Heybox/expression_cube_cangsang.png",
            "Heybox5": "Heybox/expression_cube_dalian.png",
            "Heybox6": "Heybox/expression_cube_doge.png",
            "Heybox7": "Heybox/expression_cube_gandong.png",
            "Heybox8": "Heybox/expression_cube_guai.png",
            "Heybox9": "Heybox/expression_cube_gugu.png",
            "Heybox10": "Heybox/expression_cube_han.png",
            "Heybox11": "Heybox/expression_cube_hbi.png",
            "Heybox12": "Heybox/expression_cube_heirenwenhao.png",
            "Heybox13": "Heybox/expression_cube_huaji.png",
            "Heybox14": "Heybox/expression_cube_jiayou.png",
            "Heybox15": "Heybox/expression_cube_jingya.png",
            "Heybox16": "Heybox/expression_cube_kaixin.png",
            "Heybox17": "Heybox/expression_cube_ku.png",
            "Heybox18": "Heybox/expression_cube_kun.png",
            "Heybox19": "Heybox/expression_cube_kuqi.png",
            "Heybox20": "Heybox/expression_cube_nu.png",
            "Heybox21": "Heybox/expression_cube_penshui.png",
            "Heybox22": "Heybox/expression_cube_qiliang.png",
            "Heybox23": "Heybox/expression_cube_shengqi.png",
            "Heybox24": "Heybox/expression_cube_shuijiao.png",
            "Heybox25": "Heybox/expression_cube_tanqi.png",
            "Heybox26": "Heybox/expression_cube_tanshou.png",
            "Heybox27": "Heybox/expression_cube_tu.png",
            "Heybox28": "Heybox/expression_cube_wa.png",
            "Heybox29": "Heybox/expression_cube_weiqu.png",
            "Heybox30": "Heybox/expression_cube_weixiao.png",
            "Heybox31": "Heybox/expression_cube_wulianku.png",
            "Heybox32": "Heybox/expression_cube_xia.png",
            "Heybox33": "Heybox/expression_cube_xiaocry.png",
            "Heybox34": "Heybox/expression_cube_xihuan.png",
            "Heybox35": "Heybox/expression_cube_xuexi.png",
            "Heybox36": "Heybox/expression_cube_yun.png",
            "Heybox37": "Heybox/expression_cube_zan.png"
        }
    })
    
</script>
</section>
    </div>
</div>


        <div class="nexmoe-post-right">
            <div class="nexmoe-fixed">
              <div class="nexmoe-tool">
                
                
                    
                        <button class="mdui-fab catalog" style="overflow:unset;">
                            <i class="nexmoefont icon-i-catalog"></i>
                            <div class="nexmoe-toc">
                              <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#for%E5%BE%AA%E7%8E%AF%E5%B5%8C%E5%A5%97"><span class="toc-number">1.</span> <span class="toc-text">for循环嵌套</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%A1%88%E4%BE%8B1"><span class="toc-number">1.1.</span> <span class="toc-text">案例1</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%A1%88%E4%BE%8B2"><span class="toc-number">1.2.</span> <span class="toc-text">案例2</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%A1%88%E4%BE%8B3"><span class="toc-number">1.3.</span> <span class="toc-text">案例3</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%A1%88%E4%BE%8B4"><span class="toc-number">1.4.</span> <span class="toc-text">案例4</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%95%B0%E6%8D%AE%E5%88%86%E6%9E%90"><span class="toc-number">2.</span> <span class="toc-text">数据分析</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%A1%88%E4%BE%8B1-%EF%BC%88%E5%BC%B9%E6%80%A7%E5%B8%83%E5%B1%80%EF%BC%89"><span class="toc-number">2.1.</span> <span class="toc-text">案例1 （弹性布局）</span></a></li></ol></li></ol>
                            </div>
                        </button>
                        
                  
                
                  <a href="#nexmoe-content" class="toc-link" aria-label="回到顶部" title="top"><button class="mdui-fab mdui-ripple"><i class="nexmoefont icon-caret-top"></i></button></a>
                
              </div>
            </div>
        </div>
    </div>
  </div>
  <div id="nexmoe-pendant">
    <div class="nexmoe-drawer mdui-drawer nexmoe-pd" id="drawer">
        
            <div class="nexmoe-pd-item">
                <div class="clock">
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="memory"></div>
        <div class="needle" id="hours"></div>
        <div class="needle" id="minutes"></div>
        <div class="needle" id="seconds"></div>
        <div class="clock_logo">

        </div>

    </div>
<style>
    .clock {
        background-color: #ffffff;
        width: 70vw;
        height: 70vw;
        max-width: 70vh;
        max-height: 70vh;
        border: solid 2.8vw #242424;
        position: relative;
        overflow: hidden;
        border-radius: 50%;
        box-sizing: border-box;
        box-shadow: 0 1.4vw 2.8vw rgba(0, 0, 0, 0.8);
        zoom:0.2
    }

    .memory {
        position: absolute;
        top: 50%;
        left: 50%;
        transform-origin: center;
    }

    .memory:nth-child(1) {
        background-color: #424242;
        width: 2%;
        height: 8%;
        transform: translate(-50%, -50%) rotate(0deg) translateY(-520%);
    }

    .memory:nth-child(2) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(6deg) translateY(-1461%);
    }

    .memory:nth-child(3) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(12deg) translateY(-1461%);
    }

    .memory:nth-child(4) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(18deg) translateY(-1461%);
    }

    .memory:nth-child(5) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(24deg) translateY(-1461%);
    }

    .memory:nth-child(6) {
        background-color: #424242;
        width: 2%;
        height: 8%;
        transform: translate(-50%, -50%) rotate(30deg) translateY(-520%);
    }

    .memory:nth-child(7) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(36deg) translateY(-1461%);
    }

    .memory:nth-child(8) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(42deg) translateY(-1461%);
    }

    .memory:nth-child(9) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(48deg) translateY(-1461%);
    }

    .memory:nth-child(10) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(54deg) translateY(-1461%);
    }

    .memory:nth-child(11) {
        background-color: #424242;
        width: 2%;
        height: 8%;
        transform: translate(-50%, -50%) rotate(60deg) translateY(-520%);
    }

    .memory:nth-child(12) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(66deg) translateY(-1461%);
    }

    .memory:nth-child(13) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(72deg) translateY(-1461%);
    }

    .memory:nth-child(14) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(78deg) translateY(-1461%);
    }

    .memory:nth-child(15) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(84deg) translateY(-1461%);
    }

    .memory:nth-child(16) {
        background-color: #424242;
        width: 2%;
        height: 8%;
        transform: translate(-50%, -50%) rotate(90deg) translateY(-520%);
    }

    .memory:nth-child(17) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(96deg) translateY(-1461%);
    }

    .memory:nth-child(18) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(102deg) translateY(-1461%);
    }

    .memory:nth-child(19) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(108deg) translateY(-1461%);
    }

    .memory:nth-child(20) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(114deg) translateY(-1461%);
    }

    .memory:nth-child(21) {
        background-color: #424242;
        width: 2%;
        height: 8%;
        transform: translate(-50%, -50%) rotate(120deg) translateY(-520%);
    }

    .memory:nth-child(22) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(126deg) translateY(-1461%);
    }

    .memory:nth-child(23) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(132deg) translateY(-1461%);
    }

    .memory:nth-child(24) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(138deg) translateY(-1461%);
    }

    .memory:nth-child(25) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(144deg) translateY(-1461%);
    }

    .memory:nth-child(26) {
        background-color: #424242;
        width: 2%;
        height: 8%;
        transform: translate(-50%, -50%) rotate(150deg) translateY(-520%);
    }

    .memory:nth-child(27) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(156deg) translateY(-1461%);
    }

    .memory:nth-child(28) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(162deg) translateY(-1461%);
    }

    .memory:nth-child(29) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(168deg) translateY(-1461%);
    }

    .memory:nth-child(30) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(174deg) translateY(-1461%);
    }

    .memory:nth-child(31) {
        background-color: #424242;
        width: 2%;
        height: 8%;
        transform: translate(-50%, -50%) rotate(180deg) translateY(-520%);
    }

    .memory:nth-child(32) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(186deg) translateY(-1461%);
    }

    .memory:nth-child(33) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(192deg) translateY(-1461%);
    }

    .memory:nth-child(34) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(198deg) translateY(-1461%);
    }

    .memory:nth-child(35) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(204deg) translateY(-1461%);
    }

    .memory:nth-child(36) {
        background-color: #424242;
        width: 2%;
        height: 8%;
        transform: translate(-50%, -50%) rotate(210deg) translateY(-520%);
    }

    .memory:nth-child(37) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(216deg) translateY(-1461%);
    }

    .memory:nth-child(38) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(222deg) translateY(-1461%);
    }

    .memory:nth-child(39) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(228deg) translateY(-1461%);
    }

    .memory:nth-child(40) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(234deg) translateY(-1461%);
    }

    .memory:nth-child(41) {
        background-color: #424242;
        width: 2%;
        height: 8%;
        transform: translate(-50%, -50%) rotate(240deg) translateY(-520%);
    }

    .memory:nth-child(42) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(246deg) translateY(-1461%);
    }

    .memory:nth-child(43) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(252deg) translateY(-1461%);
    }

    .memory:nth-child(44) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(258deg) translateY(-1461%);
    }

    .memory:nth-child(45) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(264deg) translateY(-1461%);
    }

    .memory:nth-child(46) {
        background-color: #424242;
        width: 2%;
        height: 8%;
        transform: translate(-50%, -50%) rotate(270deg) translateY(-520%);
    }

    .memory:nth-child(47) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(276deg) translateY(-1461%);
    }

    .memory:nth-child(48) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(282deg) translateY(-1461%);
    }

    .memory:nth-child(49) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(288deg) translateY(-1461%);
    }

    .memory:nth-child(50) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(294deg) translateY(-1461%);
    }

    .memory:nth-child(51) {
        background-color: #424242;
        width: 2%;
        height: 8%;
        transform: translate(-50%, -50%) rotate(300deg) translateY(-520%);
    }

    .memory:nth-child(52) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(306deg) translateY(-1461%);
    }

    .memory:nth-child(53) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(312deg) translateY(-1461%);
    }

    .memory:nth-child(54) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(318deg) translateY(-1461%);
    }

    .memory:nth-child(55) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(324deg) translateY(-1461%);
    }

    .memory:nth-child(56) {
        background-color: #424242;
        width: 2%;
        height: 8%;
        transform: translate(-50%, -50%) rotate(330deg) translateY(-520%);
    }

    .memory:nth-child(57) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(336deg) translateY(-1461%);
    }

    .memory:nth-child(58) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(342deg) translateY(-1461%);
    }

    .memory:nth-child(59) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(348deg) translateY(-1461%);
    }

    .memory:nth-child(60) {
        background-color: #949494;
        width: 1%;
        height: 3%;
        transform: translate(-50%, -50%) rotate(354deg) translateY(-1461%);
    }

    .needle {
        position: absolute;
        top: 50%;
        left: 50%;
        transform-origin: center;
    }

    .needle#hours {
        background-color: #1f1f1f;
        width: 4%;
        height: 30%;
        transform-origin: center 75%;
        transform: translate(-50%, -75%);
    }

    .needle#hours.moving {
        transition: transform 150ms ease-out;
    }

    .needle#hours:after {
        content: '';
        background-color: #1f1f1f;
        width: 4vw;
        height: 4vw;
        max-width: 4vh;
        max-height: 4vh;
        display: block;
        position: absolute;
        top: 75%;
        left: 50%;
        box-sizing: border-box;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

    .needle#minutes {
        background-color: #1f1f1f;
        width: 2%;
        height: 45%;
        transform-origin: center 75%;
        transform: translate(-50%, -75%);
    }

    .needle#minutes.moving {
        transition: transform 150ms ease-out;
    }

    .needle#minutes:after {
        content: '';
        background-color: #1f1f1f;
        width: 4vw;
        height: 4vw;
        max-width: 4vh;
        max-height: 4vh;
        display: block;
        position: absolute;
        top: 75%;
        left: 50%;
        box-sizing: border-box;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

    .needle#seconds {
        background-color: #cb2f2f;
        width: 1%;
        height: 50%;
        transform-origin: center 75%;
        transform: translate(-50%, -75%);
    }

    .needle#seconds.moving {
        transition: transform 150ms ease-out;
    }

    .needle#seconds:after {
        content: '';
        background-color: #cb2f2f;
        width: 2.5vw;
        height: 2.5vw;
        max-width: 2.5vh;
        max-height: 2.5vh;
        display: block;
        position: absolute;
        top: 75%;
        left: 50%;
        box-sizing: border-box;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }
    .clock_logo{
        width: 10vw;
        height: 10vw;
        max-width: 10vh;
        max-height: 10vh;
        position: absolute;
        top: 50%;
        left: 50%;
        box-sizing: border-box;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }
    @media (min-width: 100vh) {
        .clock {
            border: solid 2.8vh #242424;
            box-shadow: 0 1.4vh 2.8vh rgba(0, 0, 0, 0.8);
        }
    }

</style>





            </div>
        
            <div class="nexmoe-pd-item">
                <div class="qweather" >
    <div id="he-plugin-standard"></div>
    <div class="qweather-logo">

    </div>

</div>
<style>
    .qweather{
        position: relative;
    }
    .qweather-logo{
        position: absolute;
        right: 0;
        top: -15px;
        width: 40px;
        height: 40px;
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }
</style>
<script>
  WIDGET = {
    "CONFIG": {
      "layout": "2",
      "width": "260",
      "height": "220",
      "background": "5",
      "dataColor": "0099FF",
      "borderRadius": "15",
      "key": "06114923535c446ea84c203a5e492a41"
    }
  }
</script>
<script src="https://widget.qweather.net/standard/static/js/he-standard-common.js?v=2.0"></script>

            </div>
        
</div>
<style>
    .nexmoe-pd {
        left: auto;
        top: 40px;
        right: 0;
    }
    .nexmoe-pd-item{
       display: flex;
        justify-content: center;
        margin-bottom: 30px;
    }
</style>

  </div>
  <script src="https://cdn.jsdelivr.net/combine/npm/lazysizes@5.1.0/lazysizes.min.js,gh/highlightjs/cdn-release@9.15.8/build/highlight.min.js,npm/mdui@0.4.3/dist/js/mdui.min.js?v=1"></script>
<script>
	hljs.initHighlightingOnLoad();
</script>

<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js"></script>


<script src="/js/app.js?v=1695462045748"></script>

<script src="https://cdn.jsdelivr.net/npm/justifiedGallery@3.8.1/dist/js/jquery.justifiedGallery.min.js"></script>
<script>
	$(".justified-gallery").justifiedGallery({
		rowHeight: 160,
		margins: 10,
	});
</script>

  





<!-- hexo injector body_end start -->
<script src="/js/clock.js"></script>

<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>

<script src="/lib/codeBlock/codeBlockFuction.js"></script>

<script src="/lib/codeBlock/codeLang.js"></script>

<script src="/lib/codeBlock/codeCopy.js"></script>

<script src="/lib/codeBlock/codeShrink.js"></script>

<link rel="stylesheet" href="/lib/codeBlock/matery.css">

<script src="https://code.jquery.com/jquery-3.6.0.js"></script>

<script src="/js/search.js"></script>

<script src="/js/webapp.js"></script>
<!-- hexo injector body_end end --><script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"debug":false,"model":{"jsonPath":"/live2dw/assets/assets/rem.model.json"},"display":{"position":"left","width":400,"height":400},"mobile":{"show":true,"scale":0.5},"react":{"opacityDefault":0.7,"opacityOnHover":0.8},"log":false});</script></body>
</html>

<script>(function(i,s,o,g,r,a,m){i["DaoVoiceObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;a.charset="utf-8";m.parentNode.insertBefore(a,m)})(window,document,"script",('https:' == document.location.protocol ? 'https:' : 'http:') + "//widget.daovoice.io/widget/f90b2d50.js","daovoice")</script>
<script>
  daovoice('init', {
    app_id: "f90b2d50"
  });
  daovoice('update');
</script>

